home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / TextUtils.idl < prev    next >
Text File  |  1996-05-01  |  3KB  |  135 lines

  1. /*
  2.      File:        TextUtils.idl
  3.  
  4.      Contains:    Text Utilities Interfaces.
  5.  
  6.      Version:    Technology:    System 7.0 through System 8
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __TEXTUTILS_IDL__
  19. #define __TEXTUTILS_IDL__
  20.  
  21. #include <somobj.idl>
  22. #include <somcls.idl>
  23.  
  24. #ifndef __TYPES_IDL__
  25. #include <Types.idl>
  26. #endif
  27. #ifndef __SCRIPT_IDL__
  28. #include <Script.idl>
  29. #endif
  30. #ifndef __OSUTILS_IDL__
  31. #include <OSUtils.idl>
  32. #endif
  33. #ifndef __TEXTOBJECTS_IDL__
  34. #include <TextObjects.idl>
  35. #endif
  36. #ifndef __NUMBERFORMATTING_IDL__
  37. #include <NumberFormatting.idl>
  38. #endif
  39. #ifndef __TIMEOBJECTS_IDL__
  40. #include <TimeObjects.idl>
  41. #endif
  42. #ifndef __STRINGCOMPARE_IDL__
  43. #include <StringCompare.idl>
  44. #endif
  45.  
  46. #ifdef __SOMIDL__
  47.  
  48. /*
  49.  
  50.     Here are the current System 7 routine names and the translations to the older forms.
  51.     Please use the newer forms in all new code and migrate the older names out of existing
  52.     code as maintainance permits.
  53.     
  54.     NEW NAME                    OLD NAMEs                    OBSOLETE FORM (no script code)
  55.  
  56.     FindScriptRun
  57.     FindWordBreaks                                            NFindWord, FindWord
  58.     GetIndString            
  59.     GetString
  60.     Munger
  61.     NewString                
  62.     SetString                
  63.     StyledLineBreak
  64.     TruncString
  65.     TruncText
  66.  
  67.     UpperString ($A054)            UprString, UprText
  68.     UppercaseText                SCUpperText (a only)        UpperText ($A456)
  69.     LowercaseText                                            LwrString, LowerText, LwrText ($A056)
  70.     StripDiacritics                                            StripText ($A256)
  71.     UppercaseStripDiacritics                                StripUpperText ($A656)
  72.  
  73.  
  74. */
  75. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  76. /* Type for truncWhere parameter in TruncString, TruncText */
  77. typedef short                    TruncCode;
  78.  
  79. typedef SInt8                    StyledLineBreakCode;
  80.  
  81. typedef SOMTwoByteStruct        ScriptRunStatus;            /* Derived from a struct of 2 bytes in size */
  82.  
  83. typedef SOMLargeStruct            BreakTable;                    /* Derived from a struct of 260 bytes in size */
  84.  
  85. typedef OpaquePtr                BreakTablePtr;                /* Substituted OpaquePtr for ``BreakTable*'' */
  86.  
  87. typedef SOMLargeStruct            NBreakTable;                /* Derived from a struct of 274 bytes in size */
  88.  
  89. typedef OpaquePtr                NBreakTablePtr;                /* Substituted OpaquePtr for ``NBreakTable*'' */
  90.  
  91. /* The following functions are new names that work on 68k and PowerPC */
  92. #endif
  93. /* FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE*/
  94. #if FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE
  95. #if CGLUESUPPORTED
  96. #endif
  97. /*
  98.  CGLUESUPPORTED
  99.  The following are macros which map old names to the names exported by InterfaceLib
  100. */
  101. #if OLDROUTINENAMES
  102. #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
  103. #if CGLUESUPPORTED
  104. #endif
  105. #endif
  106. /* FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED*/
  107. #endif
  108. /* OLDROUTINENAMES*/
  109. /* Old routine name but no new names are mapped to it:*/
  110. #endif
  111. /* FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE*/
  112. /*
  113.     The following functions are old names, but are required for PowerPC builds
  114.     because InterfaceLib exports these names, instead of the new ones.
  115. */
  116. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  117. #endif
  118. /* FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE*/
  119. #if CGLUESUPPORTED
  120. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  121. #endif
  122. #endif
  123. /* CGLUESUPPORTED*/
  124. #if !OLDROUTINELOCATIONS
  125. #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
  126. #endif
  127. /* FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE*/
  128. #endif
  129. /* !OLDROUTINELOCATIONS*/
  130.  
  131. #endif /* __SOMIDL__ */
  132.  
  133. #endif /* __TEXTUTILS_IDL__ */
  134.  
  135.